*=========================================*
* Changelog - snYpir's SP/MP Support Pack *
*=========================================*

Current version: 1.33 (released 22 Apr 03)
------------------------------------------

The latest version can be downloaded at http://www.ofpec.com/editors/spt_pack.php. Check regularly for updates and new templates.

History:
--------

1.33
* Resupply now available
      - Defined in init_reinforce.sqs (see that file for more info)
      - Can use either pre-configured crates, or the user can choose what weapons and equipment to be resupplied in-game
      - Two new dialogs created
      - Some rather hefty MP code implemented for transferring arrays back and forth
      - At this stage, only "PARADROP" and "SPAWN" resupply missions are available
      - All init_reinforce.sqs files in example missions updated
* Added new reinforcement type - "CHOPPER_LAND"
      - Choppers will come in and land, then unload reinforcement units
      - Example mission definition added to init_reinforce.sqs
* A few new features and changes for rappelling
      - "RAPPLE" reinforce missions renamed to "CHOPPER_RAPPEL" ("RAPPEL" still works)
      - A sixth parameter has been added to "RAPPEL" interface calls
            > ["smoke shell type",...] is used to define a list from which smoke type will be randomly chosen
      - You can turn smoke on/off and set the colour of smoke for alternate drop-off rappels via init_general.sqs
            > sny_arty_var_rappel_smoke_drop = true/false to turn smoke on/off
            > sny_arty_var_rappel_smoke_colours = ["smoke shell type",...] to define a list from which the smoke type is randomly chosen
      - You can now specify if alternate drop off rappels are precision or normal in init_general.sqs
            > sny_arty_var_rappel_precision = true/false
* Bug fix: sny_arty_var_load_init_closeair_sqs and sny_arty_var_load_init_airstrike_sqs were reversed (thanks Janne)
* All units in CAS patrol area are now revealed to all CAS aircraft continuously throughout mission
* Various enhancements to precision airstrikes
      - "PRECISION_CLUSTER" and "PRECISION_NAPALM" can now be defined - see init_airstrike.sqs
      - Precision airstrikes are now much more reliable (angles used instead of distances when calculating CCIP)
      - Precision bombs track as soon as they are released, rather than relying on a variable in init_airstrike.sqs
      - Airstrike aircraft are now spawned 3 km away from target instead of 2 km
* Reinforcement paradrops now occur based on angles rather than distances - more reliable
* Chopper addons that return [?,?,-1] with the getpos command are now handled a bit better in chopper extractions
      - ie the SEB Chinook, some BAS addons
* The rappel rope is now coloured thanks to Jahave
* Reinforcements made even more reliable (in some instances transport vehicles were not returning to base)

1.321
* Added new dust types ("SNOW" and "RED") to shell dust
      - Fixes error message when calling arty using these colours of dust
      
1.32
* Precision airstrikes can now be defined in init_airstrike.sqs
      - Uses Rastavovich's CCIP script to launch the bomb(s) realistically
      - Bombs can be 'fired' using the 'fire' command or created
      - See init_airstrike.sqs for more information (in the example mission)
* Added two more dust colours: "RED" (for nam missions) and "SNOW" (thanks TJ!)
      - Updated the nam template to use the "RED" colour
* Added "BAS_Satcom" to the radio types list in init_general.sqs

1.31
* Interface.sqs calls for rappelling and dust now work without calling \SNYSptPack\init.sqs at all
* If past only two parameters (chopper and groups) rappelling defaults to old method
      - Precision rappelling only occurs if interface.sqs is passed a position
* TJ's dust script can be used via interface.sqs.
      - If you call ["DUST",[choppername]] exec "\SNYSptPack\interface.sqs] Vektorboson's script will be called
      - If you call ["DUST",[choppername,terrain,chopper size]] exec "\SNYSptPack\interface.sqs] TJ's script will be called
      - terrain can be:
            - 1 (Desert - lots of dust)
            - 2 (Nogova / Malden / kolgujev - limited dust, suited to such Islands)
            - 3 (Ia Drang / Vietnam - lots of red dust)
            - 4 (Winter / Snowy maps - white snow clouds)
      - choppersize can be:
            - 1 (Smaller chopper, eg AH1, OH6 etc)
            - 2 (Larger chopper,  eg Chinook, Hind, mi17 etc)

1.30
* CAS aircraft are now only given initial velocity if spawned higher than 20m
      - Fixes 'shooting' aircraft bug if launching from LSD (thanks Nevres)
* CAS aircraft are given velocity towards the target

1.29
* Last three parameters for rappelling via interface.sqs now optional

BETA 1.28
Fully compatible with old missions! Simply copy the new version into your Res/Addons folder!

* A number of additions have been made to init_general.sqs
      - Important! The exact init files to be loaded are now set in init_general.sqs. This allows compatibility with older missions (that don't have an init_reinforce.sqs file, for instance).
      - You can now turn range circles off in init_general.sqs. This dramatically speeds things up on slow multiplayer servers.
      - You can turn off searching for a clear place to land in init_general.sqs.
* The dialog has been given a makeover, it is now easier to read and looks more professional.
      - Better colours and font sizes
      - The version of the spt pack is shown on the dialog now.
* Reinforcement scripts vastly improved
      - Patrolling works as expected
      - Numerous bugs fixed
      - Copilot tries to regain control if pilot dies
      - All units eject if vehicle is going down
* The chopper extraction scripts now ignore men when searching for a clear place to land.
* New versions are now compatible with old (1.19) calls to interface.sqs.
* Choppers now spawn at surface height (on buildings, ships etc) - can't guarentee it will land back on it ok though (will be in next version)
* You can move batteries/bases via the MoveSupport function - ["Mission name",[position]] call MoveSupport (must be called on the server)
* Fixed a bug in the ASL functions that was preventing rappelling near sea level

BETA 1.27
* Added reinforcement support
      - See init_reinforce.sqs in the example mission for details
      - Allowable reinforcements (at present) are rappel, para and land
      - You'll need the C130 available at http://www.opflashpoint.org/addons.php?v=292 in order to do the C130 paradrop (check it out by editing init_general.sqs, and add _predefined_re2 to the predefined array)
* Vastly improved rappelling
      - Rappel onto high surfaces (roofs, ships etc) happens automatically
      - You can't rappel onto the top of the LSD because of faults in the addon
      - Precision chopper movement scripts utilised (still under development)
      - MP is as good as it is going to get
* Interface.sqs changed to reflect new rappelling scripts
      - Parameters are now [ chopper name, [groups to rappel], position to rappel at, drop smoke whilst rappelling, fly out height]
      - See the 1.27 example mission for a demo
* Implemented Dschulle's getpitch function to ensure smooth transition in rappel scripts

1.19 - 23 Mar 03
* Extensive testing and code refinement for 56k connections across the internet. All known slow network connection bugs appear to be fixed (units getting stuck in rapelling animation, clients unable to synch with server)
* Added SIMULATED artillery. See the readme.html files for details (welcome counter-battery fire to OFP)
* Scud support added (as a type of simulated artillery). Thanks to DutchBoy.
* Number of guns moved to battery definitions in init_artillery.sqs. Old init_artillery.sqs files will still work, however.
* Added an option in init_general.sqs which allows players to select drop-off method during extractions

1.18 - 18 Mar 03
* Error message when rappelling (introduced in 1.17) fixed
* A pilot (or chopper) dead check occurs during deccelleration from high speed

1.17 - 18 Mar 03
* Extractions using interface.sqs now work with multiple aircraft that call interface.sqs at the same time
* Advanced example mission updated to show landing multiple choppers

1.16 - 17 Mar 03
* Airstrike aircraft now start in the direction of the target, instead of south

1.15 - 17 Mar 03
We are getting close to a bug-free version, folks ;)
* Fixed a bug with chopper extractions - chopper now maintains the same height when slowing over terrain with a gradient
* Added a version check in SNYSptPack.pbo - in MP, all computers must be running the same version as the clients (clients with a different version will not be allowed to participate)
* Fixed a bug with rappelling in MP - the switchmoves weren't seen on clients. Now they are.
* Change 'targetmarker' to 'SNY_target' in all of the init_general.sqs files. 'targetmarker' still works however (there is no need to update old init_general.sqs files)
* Fixed a bug where one of the labels on the dialogs wasn't hidden when the dialog was minimised

1.14 - 17 Mar 03
* Removed call to USMC marker addon for the target marker *embarrased*
* Removed SEB radio from the ammo box in the easy example mission *more embarrased*

1.135 - 16 Mar 03
* Fixed a bug in the artillery scripts that was causing a nasty error (thanks to The Captain)

1.13 - 16 Mar 03
RELEASE VERSION!
* Added an interface script, interface.sqs, which allows you to conduct quick chopper landings, rappelling and dust effect with any aircraft in your mission.
* Addded a new example mission (spt_pack_example_advanced.Eden) to the zip, showing interface.sqs in action

1.125 - 16 Mar 03
* Now use Battle Over Hokkaido Mod's rope and rappelling anim for a more realistic fast rope insertion (incorporated it into the SNYSptPack addon)

1.12 - 15 Mar 03
* Refined land_chopper.sqs - choppers are now driven in using setpos, meaning that they land right at the correct landing position (within 10m) 95% of the time. Multiple choppers works fine now.
* Added collision detection with regards to determining LZ positions for extractions. LZs will always be at least 15m away from objects (trees, houses etc)
* Updated Vietnam template to use Remo's F4 addon
* Bombs now fall the way the aircraft is moving in airstrikes

1.10 - 15 Mar 03
* Release version
* Added a 'mission cancelled, all aircraft destroyed' message
* Fixed bug preventing choppers flying away after an extraction mission
* Added code to make the gunner fire during extractions
* Changed global variable names in land_chopper.sqs so there is no conflict with other versions

1.05 - 14 Mar 03
* You can turn off either arty or helo dust effects
* Request support action effected by 'sny_arty_var_require_radio'
* Laser designator weapon types are now defined in init_general.sqs
* Re-wrote the chopper landing script, now the choppers will ALWAYS land within 10m of their designated landing position - this is a significant improvement.
* In airstrike missions, aircraft will be spawned in the direction of their airbase (not simply to the north).
* Zayfods rappel script version 6 implemented, and mods made to ensure it works in MP.
* Batteries/airbases of same name allowed, as long as they belong to different sides
* The stop script (used in chopper extractions) was re-written; choppers now hug the ground whilst slowing, and turn to face their objective.
* Choppers should now fly away at the completion of an extraction mission

1.0 - 10 Mar 03
* You can now use the action menu to request support intead of (or as well as) the radio via the 'sny_arty_var_action_activate' variable. I still have to make this be effected by 'sny_arty_var_require_radio' though.
* Airstrikes work much better now (start position is as per a formation, rather than random). All I have to do is set their direction to match airfield -> target, and then airstrikes are pretty much finished. I also tried using CCIP to lob the bombs on target, but this is very unreliable at present. I think I will have to force the aircraft to stay at a certain altitude in order to do this.

0.99 - 9 Mar 03
* The support pack is now an addon
* Created 'SNYSptPack.pbo', which is a combination of EVERY addon required for the spt pack (parts of CoC mines, parts of USMC markers, napalm), as well as all of the core scripts
* Modified example mission and templates to match the new addon system
* Updated readme.html accordingly
* Added rappel option for alternate drop off during helo extraction
* Fixed the two optional F4 Phantom addons (download them from the online documentation) so that there is no longer an error message
* Fixed 12 group members bug
* Implemented a global variable to specify the location of core files (to allow for easy transfer of files into and out of addon during testing)

0.95 - 5 Mar 03
* Napalm and cluster airstrikes available, added dust effects for choppers and artillery
* Added new airstrike types, as usual they are customisable (via \sny_fire_spt\init_airstrike.sqs)
* Moved the airburst settings into the actual artillery fire mission definitions
* Added Vektorboson's chopper dust script (works automatically, turn it off in init_general.sqs)
* Added dust when an arty round hits the earth (works automatically, turn it off in init_general.sqs)
* You can now specify the formation that extraction choppers will take off and land in (not customisable yet, still tweaking)
* Extraction scripts should work better (the scripts detect the chopper type to try and get the choppers landing right on target).

0.93 - 2 Mar 03
* Added an ETA message for CAS and extractions
* Numerous small bug fixes (radio bug, range circle bug)
* Added a range scale variable for arty - now you can use real world values but scale them to suit OFP. Not implemented for area of barrage yet, only min/max range.
* Added a vietnam template mission. F4 phantom required (available at ftp://www.gamezone.cz/ofpd/unofaddons/F4Bomb.zip - the addon seems to have an error though).

0.92 - 2 Mar 03
* Added extraction support
* Added custom formations scripts - not used yet though (doesn't work too well with aircraft)
* Many more bugfixes and enhancements
* You can now more easily set the shrapnel objects at the top of init_artillery.sqs - CoC_Mines.pbo no longer required.
* Another radio trigger is required for use with extractions
* Added functions to get/set the number of salvos for batteries/airbases, and added a function to get a list of arty names.
* Added automatic debugging during init that will spit out an error message if any of the init files are wrongly configured.

0.81 - 19 Feb 03
* Added laser designator support. See the readme file for details on how it works (pretty simple, really).

0.80 - 19 Feb 03
* Close air support (CAS) capability added (and another re-write)
* Re-worked code immensely, now things like game logics and fire controller are created automatically (no need for designer to place units to act at fire controllers)
* Range markers are now automatically assigned and don't have to be entered into init files
* Arty/Air missions are now linked with markers in the editor. If you delete a mission's marker in the editor, it will not be visible at all in the game. This means that people can use the pack in their missions without touching the init files at all.
* A few settings in init_general.sqs now allow the mission designer to state whether a player's group must posses a radio in order to call support.
* Briefing constructed for the example mission
* Template mission re-done (should be easier to integrate now)
* Readme updated
* Information passing between server and clients made more efficent (loading of ranges and dialogs is quicker now)
* A heap of other less important updates and bug fixes... ;)

0.55 - 13 Feb 03
* Added in airburst arty and shrapnel (thanks Dinger and Doolittle). CoC Mines pack now required.
* Added two new AP (anti pers) fire mission types (105mm and 155mm).
* Added a template mission to the zip
* Added a draft html help fire to the zip, with screenshots (to try and explain how to use this thing)

0.52 - 13 Feb 03
* Airstrike capability added
* Added seperate list boxes for battery/squadron and fire mission
* Renamed arty folder to sny_fire_spt and restructured the files/folders within
* Messages updated to reflect the fact that both arty and airstrikes can now be called
* Added airstrike capability and new init system (the only files that a user needs to modify are in /sny_fire_spt)
* Removed the 'ID' element from battery definitions (battery IDs are assigned automatically now)

0.43 - 11 Feb 03
* added a button on the pending arty section to move the map to the arty location as it is selected in the pending list, and back again.
* added a minimise/restore button and a 'X' as another way to cancel (see second screenshot above)
* map automatically zooms and moves to the arty location once it is selected with a click

0.4 - 11 Feb 03
* Almost a total re-write
* Removed camcreate and use createvehicle instead (thanks doolittle)
* Removed client counting code - this fixes the radio bug that was pausing the scripts in multiplayer
* Added pending arty strike functionality
* Added a clock to the fire mission dialog (see second screenshot above)
* Cleaned up the dialog a fair bit
* Made server-client code more efficent

0.11 - 7 Feb 03
* Fixed dialog definition in description.ext so it doesn't clash with other dialogs at all (simply copy and paste the whole arty part into your own description.ext)
* All globals start with var_ (this will be changed again in the future to make sure there are no clashes)
* Fixed a bug in MP that was causing the wrong ammo to be spawned on clients

0.1 - 6 Feb 03
* Added more WEST arty types and fire missions to /arty/artyinit.sqs
* Added a 'loading...' dialog whilst the main arty dialog is populated
* Started to implement variable fire mission start times (dialog update)
* Made the actual fire missions more realistic, now arty will gradually become out of synch due to slightly different reload times of different gun crews (of course this is simulated, i don't actually use real gun crews) :o

0.0 - 3 Feb 03
* Initial release
